package com.retail.shop.mapper;

import com.retail.core.common.CommonMapper;
import com.retail.shop.entity.vo.ShopCardLogVo;
import com.retail.shop.entity.request.ShopCardLogRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 开卡记录 Mapper
* @author Administrator
*/
@Mapper
public interface ShopCardLogMapper extends CommonMapper<ShopCardLogRequest,ShopCardLogVo> {

    /**
     * 查询商户开卡通过的记录
     * @param adminId
     * @param verifyMonth
     * @return
     */
    List<ShopCardLogVo> findCurrentMonthVerifySuccessShopCardLogs(@Param("adminId") Long adminId, @Param("verifyMonth") String verifyMonth);

    List<ShopCardLogVo> findOwnerShopAndYear(@Param("adminId") Long adminId, @Param("verifyYear") String verifyYear);

    List<ShopCardLogVo> findCurrentMonthVerifySuccessShopCardLogsDay(@Param("adminId") Long adminId, @Param("verifyMonth") String verifyMonth);
}
